﻿jQuery.fn.extend
({
    removeCss: function (cssName) {
        return this.each(function () {
            var curDom = $(this);
            jQuery.grep(cssName.split(','),
 function (cssToBeRemoved) {
     curDom.css(cssToBeRemoved, '');
 });
            return curDom;
        });
    }
});

function commonTROver(trID) {
    $("#" + trID).css({ 'background-color': '#FFFFCC' });
}
function commonTROut(trID, originalCSS) {
    $("#" + trID).removeCss('background-color');
    $("#" + trID).addCss(originalCSS);
}